package cn.mcch.investigator.utils;

import android.content.Context;

public class StatusBarUtils {

	private StatusBarUtils() {

	}

	/**
	 * 获取状态栏高度
	 * 
	 * @param context
	 * @return
	 */
	public static int getStatusBarHeight(Context context) {

		int resourceId = context.getResources().getIdentifier("status_bar_height", "dimen", "android");
		return resourceId == 0 ? 75 : context.getResources().getDimensionPixelSize(resourceId);
	}
}
